package com.rmxx.fruit.activity;

import android.graphics.Paint;
import android.view.View;
import android.widget.TextView;

import com.company.android.fruit.R;
import com.kwan.xframe.mvp.presenter.BasePresenter;
import com.kwan.xframe.mvp.view.activity.BaseCommonActivity;

public class ProductActivity extends BaseCommonActivity {

	@Override
	public boolean isFullScreen() {
		return true;
	}

	@Override
	protected boolean isImmersionBarEnabled() {
		return false;
	}

	@Override
	protected BasePresenter getBasePresenter() {
		return null;
	}

	@Override
	protected void initData() {

	}

	@Override
	protected void initViews() {
		super.initViews();
		TextView tv = findViewById(R.id.tv_price_before);
		tv.setPaintFlags(tv.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);

		findViewById(R.id.v_back).setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}

	@Override
	protected int getTopViewId() {
		return 0;
	}

	@Override
	protected int getMainViewId() {
		return R.layout.activity_product;
	}

	@Override
	protected int getBottomViewId() {
		return 0;
	}

	@Override
	protected String getTitleTxt() {
		return null;
	}

	@Override
	public String getPageName() {
		return null;
	}
}
